﻿using System.Xml.Serialization;

namespace HamcoWcs.Models.TibcoMessage
{

    [XmlRoot("MESSAGE")]
    public class ChangeMachinePalletTypeMessage : BaseTibcoMessage<ChangeMachinePalletTypeMessageBody>
    {
        public ChangeMachinePalletTypeMessage()
        {

        }
        public ChangeMachinePalletTypeMessage(ChangeMachinePalletTypeMessageBody body, string inboxName = "", string listener = "") : base("ChangeMachinePalletTypeRequest", body, inboxName, listener)
        {
        }
    }


    public class ChangeMachinePalletTypeMessageBody : MachineEventBase
    {
        public ChangeMachinePalletTypeMessageBody()
        {
        }

        public ChangeMachinePalletTypeMessageBody(string machineName, string palletType)
        {
            MachineName = machineName;
            PalletType = palletType;
        }

        [XmlElement("PALLETTYPE")]
        public string PalletType { get; set; }

    }
}
